import { createApp } from 'vue'
import App from './App.vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import router from './router/index'
import * as ElIcon from '@element-plus/icons-vue'
import { createPinia } from 'pinia'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
// import './style.css'


const pinia=createPinia()
const app = createApp(App)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}
app.use(ElementPlus)
app.use(router)
app.use(pinia)
app.mount('#app')
Object.keys(ElIcon).forEach((key) => {
    const iconComponent = (ElIcon as Record<string, any>)[key] // 类型断言
    app.component(key, iconComponent)
  })
